package com.hntest.entity;

import org.apache.ibatis.type.Alias;

/**
 * 平台所有用户/系统用户
 * @author xu
 *
 */
@Alias("LoginInfo")
public class LoginInfo extends BaseDomain{
	private static final long serialVersionUID =1L;
	public final static int STATE_NORMAL =0;//普通用户状态
	public final static int STATE_LOCK=1;//用户锁定状态
	public final static int STATE_LOGOFF=-1;//用户注销状态
	
	private Integer lid;
	private String username;
	private String password;
	private Integer state = STATE_NORMAL;//用户状态

    public LoginInfo() {
    }

    public LoginInfo(Integer lid, String username, String password, Integer state) {
        this.lid = lid;
        this.username = username;
        this.password = password;
        this.state = state;
    }

    @Override
    public String toString() {
        return "LoginInfo{" +
                "lid=" + lid +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", state=" + state +
                '}';
    }

    public Integer getLid() {
        return lid;
    }

    public void setLid(Integer lid) {
        this.lid = lid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
}
